Sub-method structural and behavioral reflection

نویسنده

  • Marcus Denker
چکیده

Computational reflection is a fundamental mechanism in object oriented languages. Reflection has proved useful in many contexts, such as in the design of development environments, language extension, and the dynamic, unanticipated adaptation of running systems. We identify three problems with the current approach to reflection in object oriented languages: partial behavioral reflection needs to be anticipated, structural reflection is limited to the granularity of a method, and behavioral reflection cannot be applied to the whole system. To address these problems, we extend structural reflection to cover sub-method elements and present how sub-method structural reflection supports unanticipated partial behavioral reflection. We add the concept of context to represent meta-level execution and show how this allows behavioral reflection to be applied even to system classes. We describe an implementation in Smalltalk. Benchmarks validate the practicability of our approach. In addition, we present an experimental evaluation in which we show how the system is used for dynamic analysis. We realize dynamic feature analysis by annotating the sub-method structure of the system directly to denote features instead of recording full execution traces.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Presenting a Model for Female Customers Behavioral Preferences in selecting Banks based on Grounded Theory Method and Structural Equation Modeling (Case Study: Iran’s Banking Industry)

The customers ’preference is derived from reflection on a product or special commercial brand, and factors such as positive appraisal of a brand performance and holding advantages and being unique, establishes the preference. This study aimed to develop a model of female customers' preferences in selecting banks and to train senior managers and banking staff. It had an applied objective, adopte...

متن کامل

Efficiency Enhancement of Si Solar Cells by Using Nanostructured Single and Double Layer Anti-Reflective Coatings

The effect of single and double-layer anti-reflective coatings on efficiency enhancement of silicon solar cells was investigated. The reflectance of different anti-reflection structures were calculated using the transfer matrix method and then to predict the performance of solar cells coated by these structures, the weighted average reflectance curves were used as an input of a PC1D simulation....

متن کامل

Load-Time Structural Reflection in Java

The standard reflection API of Java provides the ability to introspect a program but not to alter program behavior. This paper presents an extension to the reflection API for addressing this limitation. Unlike other extensions enabling behavioral reflection, our extension called Javassist enables structural reflection in Java. For using a standard Java virtual machine (JVM) and avoiding a perfo...

متن کامل

Run-Time Evolution through Explicit Meta-Objects

Software must be constantly adapted due to evolving domain knowledge and unanticipated requirements changes. To adapt a system at run-time we need to reflect on its structure and its behavior. Objectoriented languages introduced reflection to deal with this issue, however, no reflective approach up to now has tried to provide a unified solution to both structural and behavioral reflection. This...

متن کامل

Synthesis of Carbon Nanotubes on Cerium-Substituted Barium Ferrite Substrate by Chemical Vapor Deposition for Preparation of a Microwave Absorbing Nanocomposite

In this research, at first, Ce-substituted barium ferrite, BaCe0.2Fe11.8O19 was prepared via the sol-gel method as a substrate and then Carbon NanoTubes (CNTs) was synthesized on the surface of the substrate by Chemical Vapor Deposition (CVD) technique. The structure, morphology, and electromagnetic performance of the synthesized nanocompos...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2008